//
//  TollEvent.m
//  Runone
//
//  Created by runone02 on 16/8/30.
//  Copyright © 2016年 runone. All rights reserved.
//

#import "TollEvent.h"

#define BottomeMargin     5
#define TopMargin         10
#define ImageVH           35
#define MidMargin         5
#define HorizontalMargin  55
@implementation TollEvent
{
    CGFloat _cellHeight;
    
    CGFloat _searchTollCellH ;
}

- (CGFloat)cellHeight {
     
            CGSize maxSize   = CGSizeMake([UIScreen mainScreen].bounds.size.width - 60, MAXFLOAT);
            
            CGFloat dealHeight = [self.EventDescription boundingRectWithSize:maxSize options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:14]} context:nil].size.height;
            _cellHeight = 100 +dealHeight;
        
        return _cellHeight ;
}

- (CGFloat)searchTollCellH {

            CGSize maxSize   = CGSizeMake([UIScreen mainScreen].bounds.size.width - 60, MAXFLOAT);
            
            CGFloat dealHeight = [self.EventDescription boundingRectWithSize:maxSize options:NSStringDrawingUsesLineFragmentOrigin attributes:@{NSFontAttributeName : [UIFont systemFontOfSize:14]} context:nil].size.height;
            _searchTollCellH = 100 +dealHeight;
        return _searchTollCellH ;
}


@end
